<template>
  <section class="head-slider-hms"  >
    <swiper :options="swiperOption"
      ref="iHeaderSlider">
      <!-- slides -->
      <swiper-slide v-for="sItem in sliderList" :key="sItem.src" class="item-swiper">
        <img :src="sItem.src"/>
      </swiper-slide>
      <!-- Optional controls -->
      <div class="swiper-pagination"  slot="pagination"></div>
    </swiper>
  </section>
</template>

<script>
import 'swiper/dist/css/swiper.css'
import { swiper, swiperSlide } from 'vue-awesome-swiper'

export default {
  name: 'head-slider-hms',
  components: {
    swiper, swiperSlide
  },
  data () {
    return {
      swiperOption: {
        autoplay: true,
        loop: true,
        pagination: {
          el: '.swiper-pagination',
          type: 'progressbar'
        }
      },
      currIndex: 0,
      sliderList: [
        {
          src: '//img12.360buyimg.com/jrpmobile/jfs/t1/23987/10/6467/33251/5c51768aE67229997/72c6ddc1b71c0b11.png?width=750&height=400'
        },
        {
          src: '//img12.360buyimg.com/jrpmobile/jfs/t1/24391/30/6457/116774/5c5151bcEe81d9321/706ff2b5287830c5.jpg?width=750&height=400'
        },
        {
          src: '//img12.360buyimg.com/jrpmobile/jfs/t1/32580/9/1508/55501/5c525342E6f436e12/ed5048db1d8b3c96.jpg?width=750&height=400'
        },
        {
          src: '//img12.360buyimg.com/jrpmobile/jfs/t1/11738/15/7198/167439/5c4ed772E562ee22d/99700e021dfaa604.png?width=750&height=400'
        }
      ]
    }
  },
  methods: {
  },
  computed: {

  }
}
</script>
<style lang="scss" scoped>
.head-slider-hms {
  .item-swiper {
    width: 100%;
    > img {
      width: 100%;
    }
  }
}
</style>
